package com.zjx.shop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjx.shop.common.utils.PageUtils;
import com.zjx.shop.common.utils.PageParams;
import com.zjx.shop.product.entity.CategoryEntity;
import com.zjx.shop.product.entity.VO.Catalog2VO;

import java.util.List;
import java.util.Map;


/**
 * 商品三级分类
 *
 * @author zjx
 * @email 1569675735@qq.com
 * @date 2023-05-06 15:23:28
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(PageParams params);

    List<CategoryEntity> listWithTree();

    /**
     *找到catelogId的完整路径
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catalog2VO>> getLevel2Categorys();

}

